It's been a long time since my last post about 2 months ago. I had a very busy time because I had to prepare myself to move to a new city, to larger city than I was. I had no time to online for writing any post in the past two months.
From this time, I will regularly keep updating my blog and posting simple tips but useful in programming realm.
Sorry for the inconvenient... See you in the next post...
Life of a programmer full of learning, errors, achievement, and passion. Every code we type is meaningful in our life. Proud to be a programmer.
Sunday, March 20, 2011
Tuesday, January 4, 2011
Javascript Tips : How to create a pop up window using javacript in a Button?
How to create a pop up window when someone click on a button?
Here's a simple code the way I made it..
============================ ==================================
============================== ==================================
we create a javascript function that we called "popup()". The statement window.open(), accept url parameter.
and then to call the function we utilized the button's onclick event.
That's is my simple way to create a pop up function... if you find this post help you, please leave a comment bellow.
Thank you...
Here's a simple code the way I made it..
============================ ==================================
<html>
<head>
<title>How to create pop up window using java script in a Button</title>
<script language="javascript" type="text/javascript">
function popup()
{
// change with your target URL
popwindow = window.open("http://diary-of-programmer.blogspot.com/");
return false;
}
</script>
</head>
<body>
<input type="submit" value="pop up" onclick="return popup()"/>
</body>
</html>
<head>
<title>How to create pop up window using java script in a Button</title>
<script language="javascript" type="text/javascript">
function popup()
{
// change with your target URL
popwindow = window.open("http://diary-of-programmer.blogspot.com/");
return false;
}
</script>
</head>
<body>
<input type="submit" value="pop up" onclick="return popup()"/>
</body>
</html>
============================== ==================================
we create a javascript function that we called "popup()". The statement window.open(), accept url parameter.
and then to call the function we utilized the button's onclick event.
That's is my simple way to create a pop up function... if you find this post help you, please leave a comment bellow.
Thank you...
Subscribe to:
Posts (Atom)
Finally, C# 9 record, the equivalent of Scala's case class
While C# is a wonderful programming language, there is something that I would like to see to make our life programmer easier. If you are fam...
-
I'm using git as my version control for my unity projects. In my second project, I have problem with vast amount of file changes generat...
-
While C# is a wonderful programming language, there is something that I would like to see to make our life programmer easier. If you are fam...
-
If you are tired of being asked for a password when accessing your remote droplet servers in Digitalocean, you might consider adding an rsa ...