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...
No, that does not work...
I use IE 5.0
Here is the complete code:
<script>
function print_text(txt,anyLayer) {
if(document.layers)
{
with(document.layers[anyLayer])
{
document.open();
document.write(txt)...
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)...
Thanks...
I would like to follow up with another question:
If I pass this to the function:
<body onload="printQuotes('<a href=& quot;link.htm& quot;>thelink</a>');">
Can I in the function replace the & quot; to " instead, perhaps using regular expressions?
(Pseudo-code)
function...
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>"
This is a function that is limited to the service we provide and the F1 key is the key the one we have desided to use, because it will open a help-window for our service.
Since people are used to pressing the F1 key for help, this will not be annoying to most people, but a way for them to feel...
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
Oops, sorry for being to short.
I want to print it to the <div>-tag...
This is the html code:
<html>
<title>Swap Images</title>
<head>
<script>
function print_picture(picture) {
with(document.layers['myLayer']) {
document.open();
document.write('<img src="'+picture+'">')...
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...
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.