Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Design

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 18-12-2005, 10:34 AM
hajime's Avatar
Novice Webmaster
 
Join Date: Jan 2004
Location: Banting
Posts: 20
Rep Power: 0
hajime is on a distinguished road
Send a message via ICQ to hajime Send a message via Yahoo to hajime
Question Prevent refresh at opened window when parent is refreshing

Salam sejahtera kawan-kawan,

Nak mintak bantuan kepada sesiapa yang tahu menggunakan javascript

Saya buat satu page yang automatik keluar popup window. Dalam popup window tuh ada la embed yang play mp3

tapi bila saya refresh main window, yang popup tuh pun ikut refresh sekali. so mp3 tuh keep playing from start. macam mana nak prevent tuh?

nih contoh code yang di guna kan

Code:
<html> 
<head> 
<SCRIPT LANGUAGE="javascript"> 
var newwindow = '';

function popitup(url)
{
	if (!newwindow.closed && newwindow.location)
	{
		alert("entering");
		//newwindow.location.href = url;
	}
	else
	{
		newwindow=window.open(url,'name','height=200,width=150');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}

popitup('popup.php')
</SCRIPT> 
</head> 
<body> 
lalala 
</body> 
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Return value to parent windows semutpower Website Programming 2 30-08-2006 03:11 PM
page refresh and all data gone...how to control??? spicy_girl Website Design 2 15-02-2006 01:10 PM
ADSENSE : Tools to prevent click spam bazet Revenue and Monetization 1 24-01-2006 08:38 PM
new window that i can resize blu3m0on Website Design 8 20-07-2002 07:06 AM
New Window Novice Website Design 4 25-06-2002 06:15 PM


All times are GMT +8. The time now is 01:06 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61