JavaScript Popup Window

Subject: JavaScript Popup Window
From: Joe Sokohl <jsokohl -at- CAMPBELLSOFT -dot- COM>
Date: Fri, 19 Sep 1997 08:31:42 -0500

In the <HEAD> section, create a function similar to this:

<SCRIPT LANGUAGE="JavaScript">

function doWindow(){
var NewWin = window.open
("topic.htm","name","status=no,width=430,height=450,scrollbars=yes,res
izable=yes");
}

</script>

Then, in the body of your main topic, create a link or button so the
user can access the secondary window topic. Example of a button:

<Form>
<input type="button" Name="2ndwin" value="2nd Topic"
onClick="doWindow()">
</form>

This is just one way to do it. Instead of a button, you could have an
HREF, like this:

Here is an <a href="#" onClick="doWindow()">additional topic.</a>

TECHWR-L (Technical Communication) List Information: To send a message
to 2500+ readers, e-mail to TECHWR-L -at- LISTSERV -dot- OKSTATE -dot- EDU -dot- Send commands
to LISTSERV -at- LISTSERV -dot- OKSTATE -dot- EDU (e.g. HELP or SIGNOFF TECHWR-L).
Search the archives at http://www.documentation.com/ or search and
browse the archives at http://listserv.okstate.edu/archives/techwr-l.html


Previous by Author: Reports Documentation (an on-topic topic)
Next by Author: It's vs. its redux
Previous by Thread: Re: HELP
Next by Thread: Contracting...?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads