Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
javascript window issue...
Old 01-14-2006, 03:57 AM javascript window issue...
Junior Talker

Posts: 1
Trades: 0
Hello,

I have a problem writing a window that is declared in another function. ie:

function doIt()
{
hWin=window.open("", "something", "height=550, width=800");
show(hWin)
}

function show(h)
{
h.document.write("hi")
}

I am not sure I can pass a window as a parameter...

thanks for reply,
Cindy
cindyhsu is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-14-2006, 11:49 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
you need some HTML in there:

function show(h) {
h.document.write("<html><title>Hello<\/title><body>Hello<\/body><\/html>");
}
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Reply     « Reply to javascript window issue...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09458 seconds with 12 queries