This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > April 2004 > more than one window "onload"





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author more than one window "onload"
Tim

2004-04-06, 4:32 am

Can I have two popup windows on one page...I have a page where I use the
onload command to open an instruction window...works fine.

I want to add a small java script at the end of my page that also opens
another window behind the main windows...sort of like a final suggestion or
chance for my visitors to take action.

But..when I run both on the same page the JavaScript supercedes my onload
window opening...only get one window (the JavaScript) opening ?

Is there a way for both?

(JavaScript code that is over-riding my onload behavior)
<script
SRC="http://www.autoleadsystems.com/1stcreal/TimRogers/browser.ck"></script>
<script SRC="http://www.autoleadsystems.com/blockerbuster.js"></script>

Thanks

Tim


Murray *TMM*

2004-04-06, 9:30 am

Yes - in the popup, have another onLoad to open the subordinate window. In
the subordinate window add this to the body tag -

<body ... onLoad="self.blur()"...>

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Tim" <trinaz@cox.net> wrote in message
news:n5pcc.27516$zh.3748@fed1read07...
> Can I have two popup windows on one page...I have a page where I use the
> onload command to open an instruction window...works fine.
>
> I want to add a small java script at the end of my page that also opens
> another window behind the main windows...sort of like a final suggestion

or
> chance for my visitors to take action.
>
> But..when I run both on the same page the JavaScript supercedes my onload
> window opening...only get one window (the JavaScript) opening ?
>
> Is there a way for both?
>
> (JavaScript code that is over-riding my onload behavior)
> <script
>

SRC="http://www.autoleadsystems.com/1stcreal/TimRogers/browser.ck"></script>
> <script SRC="http://www.autoleadsystems.com/blockerbuster.js"></script>
>
> Thanks
>
> Tim
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews