|
ko terinkut sangat cara VB.... webpage n orang tak gemor popup....
lain kali buat redirect............
but aku kasi gak ler scriptnya
- <script>
- function Close(pageURL) {
- window.opener.window.location = pageURL;
- window.close();
- }
- </script>
- <a href=""
- onclick="Close('page2');">Login</a>
Copy the Code |
|
|
|
|
|
|
|
Originally posted by BorderManager at 18-12-2008 03:54 PM
ko terinkut sangat cara VB.... webpage n orang tak gemor popup....
lain kali buat redirect............
but aku kasi gak ler scriptnya
function Close(pageURL) {
window.opener.wi ...
code ni letak kat page pop up tu ek?....letak last line ke? |
|
|
|
|
|
|
|
ko buat script php dulu........
kalau login success
<body onload="Close('page3.html')"> |
|
|
|
|
|
|
|
eh jap...cane ek nak p new window lepas klik login??....nak back to default size.... |
|
|
|
|
|
|
|
aku tgh wat coding utk forgot paswword..tp kuar error nie....pasal function SMTP...apesal yeee
Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in C:\xampp\htdocs\xampp\test\send_password_ac.php on line 52
Cannot send password to your e-mail address |
|
|
|
|
|
|
|
lagu 1 cane nak center kan popup? |
|
|
|
|
|
|
|
dah bagi kan codingnya... tengok page 1 |
|
|
|
|
|
|
|
ok...yg post 24 n 25 tu ape ek carenye |
|
|
|
|
|
|
|
cube cek yg akunye nie..tol ke?...td test xkuar lak popunyer...
<script>
function PopupCenter(pageURL, title,w,h) {
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}
</script>
<form name="form1" method="post" action="">
<input type="submit" name="Kaunselor" value="Kaunselor" >
</form>
[ Last edited by pzan213 at 20-12-2008 01:07 PM ] |
|
|
|
|
|
|
|
ko kena letak kat onclick="PopupCenter(pageURL, title,w,h)"
atau onsubmit="PopupCenter(pageURL, title,w,h)" |
|
|
|
|
|
|
| |
|