John Delmark Aguilar

Delmark - Profiling
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 [JS] New Window (window.open)

View previous topic View next topic Go down 
AuthorMessage
dElmARk
Admin
Admin
avatar

Posts : 92
Join date : 09/04/2012

PostSubject: [JS] New Window (window.open)   Fri Feb 28, 2014 12:48 pm

Code:
<html>
<head>
<script>
function google(){
window.open("http://google.com", '_blank', 'left=0,top=0,width=500,height=500,resizable=false', true);
}
function youtube(){
window.open("http://youtube.com", '_blank', 'left=0,top=0,width=500,height=500,resizable=false', true);
}
function yahoo(){
window.open("http://yahoo.com", '_blank', 'left=0,top=0,width=500,height=500,resizable=false', true);
}
</script>
<center>
<input onclick="google()" value="Google" type="button"><br>
<input onclick="youtube()" value="Youtube" type="button"><br>
<input onclick="yahoo()" value="Yahoo" type="button">
</center>
</head>
</html>
Back to top Go down
View user profile http://delmark.meabout.com
 
[JS] New Window (window.open)
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
John Delmark Aguilar :: dElmARk Productions :: Web Coding-
Jump to: