Jump to content

Java window.open


a1amattyj

Recommended Posts

hello,

 

This in head:

 

<SCRIPT LANGUAGE="JavaScript">
function load() {
var load = 
window.open('help.php','','scrollbars=no,menubar=no,height=300,width=400,resizable=no,toolbar=no,location=no,status=no');
}
</SCRIPT>

 

Then

 

<a href="javascript:load()">Click</a>

 

However, is it possible i can specify the section of help.php which will be opened?

 

For example..

 

 

<SCRIPT LANGUAGE="JavaScript">
function load($imguessing) {
var load = 
window.open('help.php?THING=$imguessing','','scrollbars=no,menubar=no,height=300,width=400,resizable=no,toolbar=no,location=no,status=no');
}
</SCRIPT><a href="javascript:load(section1)">Click</a>

 

Thanks

Link to comment
Share on other sites

Thanks for the reply.

 

So i guess i use this:

 

<SCRIPT LANGUAGE="JavaScript">
function load($imguessing) {
var load = 
window.open('help.php?THING='+$imguessing,'','scrollbars=no,menubar=no,height=300,width=400,resizable=no,toolbar=no,location=no,status=no');
}
</SCRIPT>

 

However, when i click the link, it doesn't pop it up. Any ideas?

 

Thanks

Link to comment
Share on other sites

Like I said, get rid of the $'s. I accidently left one in the code I copied from yours.

<SCRIPT LANGUAGE="JavaScript">
function load(imguessing) {
var load = 
window.open('help.php?THING='+imguessing,'','scrollbars=no,menubar=no,height=300,width=400,resizable=no,toolbar=no,location=no,status=no');
}
</SCRIPT>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.