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
window.open title problem on safari
Old 09-22-2007, 08:28 PM window.open title problem on safari
Junior Talker

Posts: 3
Name: dai
Trades: 0
title of my new window shows up as "untitled" on safari.
this works fine on firefox etc.

thanks

HTML Code:
    <head>
        <title>test</title>
        <script language="JavaScript">
    
    function image(Pic,wVal,hVal){
    subWin = window.open("","subwindow","width="+ wVal + ",height=" + hVal +",top=0,left=0");
    subWin.document.open();
    subWin.document.write('<html><head><title>image</title></head><body background="'+ Pic +'"></body></html>');
    subWin.document.close();
    
    }
    
    </script>
    </head>
    <body><a href="javascript:void(0)" onClick="image('pic1.jpg',400,400)"><img src="thumb1.jpg"></a>
    </body>
deluxmilkman is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-22-2007, 08:54 PM Re: window.open title problem on safari
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Try maybe a:
Code:
subWin.document.title="yada yada yada";
works on firefox at least
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 09-22-2007, 08:55 PM Re: window.open title problem on safari
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Sorry, the post quick reply timed out... (double post)
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 09-22-2007 at 08:57 PM..
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 09-26-2007, 11:26 AM Re: window.open title problem on safari
Junior Talker

Posts: 3
Name: dai
Trades: 0
didn't work, but
i think it's a bug on safari2.
it's working on safari3 beta.

thanks anyway.
deluxmilkman is offline
Reply With Quote
View Public Profile
 
Old 09-26-2007, 11:59 AM Re: window.open title problem on safari
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Yep, I've seen that a series of document/window variables are read-only with safari 2.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to window.open title problem on safari
 

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.14744 seconds with 12 queries