Total members 10262 | Gratitudes |It is currently Thu May 24, 2012 10:00 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 3 posts ] 
Author Question
 Question subject: new window using javascript
PostPosted: Fri Jan 02, 2009 4:00 pm 
Offline
Newbie
User avatar

Joined: Sat Jun 23, 2007 10:26 am
Posts: 2
Has thanked: 0 time
Have thanks: 0 time

Hi Friends,
I have a situation here. I want a page to be loaded immediately when the browser(any) is clicked. It can be set to home page. But, I want to do it using java script. How to do?
And , I want another page or tab to be opened when that page opens.i.e. Pop up. If, its clicked one time, cookie has to be set and should not pop-up again.
Expecting your code or logic. Thank you.


Last edited by msi_333 on Sat Jan 03, 2009 11:40 am, edited 1 time in total.
Title changed :)


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: WEb Browser
PostPosted: Sat Jan 03, 2009 11:39 am 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2279
Location: Earth
Has thanked: 39 time
Have thanks: 61 time
Using the
Code:
window.open('url to open','window name','attribute1,attribute2')


This function will allow you to open in a new window

1. 'url to open'
The URL address of the web page you are going to open.

2. 'window name'
Name of the window (To make a Reference to it later)

3. 'attribute1,attribute2'
There many attributes , you chose the attribute you want to adjust in it.

Example on using it

Code:
<FORM>
<INPUT type="button" value="Open window!" onClick="window.open('http://www.www.codemiles.com','Codemiles Community','width=400,height=200')">
</FORM>

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: new window using javascript
PostPosted: Tue Jan 06, 2009 10:38 am 
Offline
Newbie
User avatar

Joined: Sat Jun 23, 2007 10:26 am
Posts: 2
Has thanked: 0 time
Have thanks: 0 time
Thanks for you reply. But, this is not what i want. This opens a new window. But, for setting up as home page..
document.body.style.behavior= 'url(#default# homepage) ';
document.body.setHomePage("http://www.yahoo.com");

This piece of code works with IE5 and other browser with less compatability. But nopt with mozilla or IE7. I need a code for this. If possible kindly help me on this. Thank you.
-jena


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 3 posts ] 
Quick reply


  

 Similar topics
 JavaScript fade out problem
 Plz Help,I want BOTH THREAD to work at a time in SAME WINDOW
 javascript read file
 getting gst, pst total to diplay in my javascript form
 need help with javascript
 Javascript select menu validation issue
 Follow window background color
 validate age entered as selection box in javascript
 Trim string in JavaScript
 check array contains a value using javascript

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team