I have one main-window that opens a window named "myWindow".
If you click in the main-window, myWindow is hidden behind it.
Can I bring myWindow on top of the main-window, using a link?
My process:
function checkWindowOpen() {
if (myWindow == open) {
bringToFront
}
}
Any...
I have this function that prints a text to a layer without reloading the page.
function print_text(text)
{
if(document.layers)
{
with(document.layers['myLayer'])
{
document.open();
document.write(text)...
I would like to pass quotes ("") into a function.
I have tried escaping them with \", but all I get is "undetermined string constant".
Without the quotes, all is well.
function printQuotes(html) {
alert(html);
}
...
<body onload="javascript:printQuotes('<a...
I have a text-area and when you submit it, the \n (enter) should be replaced with a <br>. How do I do this?
Example:
TEXT:
Text with some
enters that should be replaced
by "<br>"
REPLACED TEXT:
Text with some<br>enters that should be replaced<br>by "<br>"
I would like to take control over a key on the keyboard, namely F1.
Can I with JavaScript call a function that opens a new window when someone hits this button like that annoying mouse-right-button-click that usually says "Don't mess with the source"?
The only difference is that this...
Case 1:
If I open a new window (B) from window A, I know I can close B from A. Can I close A from B?
Case 2:
I open window B from window A. Then I open window C from A.
Can I close B from C and C from B?
Hope you followed my trail of letters...
Any thoughts?
// Michelle
I want to update a layer without reloading the page.
I have previously recieved this function, but it only works with Netscape.
How can I make it work for IE?
function print_picture(picture) {
with(document.layers['myLayer']) {
document.open();
document.write('<img...
I want to update a layer without reloading the page.
I have previously recieved this function, but it only works with Netscape.
How can I make it work for IE?
function print_picture(picture) {
with(document.layers['myLayer']) {
document.open();
document.write('<img...
I want to change an image in a layer every minute.
I have an idea of the codeflow:
FUNCTIONS:
var remember = 0;
var minutepicture = array('1.gif','2.gif' etc...);
timer()
{
//activate pick_picture() every 6000 ms
setTimeout('pick_picture()',6000);
}
function pick_picture()
{
if...
I have a pop-up menu system that uses layers to show the different sections.
I have noticed on other web sites that when the mouse-pointer exits the layer, the menus are hidden automatically.
In my script I have solved this by just setting a timeout to 5 second if there has been no activity...
In my first window I have a function called test().
I open a new window with window.open() and names the first window "main".
I want to access the test()-function in the main-window from my new window, but I can't seem to get it right.
I tried playing around with...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.