<script type="text/javascript">
function changePage(pageNum) {
if (pageNum == 1) { var pageURL = 'page1.html'; }
if (pageNum == 2) { var pageURL = 'page2.html'; }
if (pageNum == 3) { var pageURL = 'page3.html'; }
window.location.href = pageURL;
}
</script>
<h1>Select Page:</h1>
<input type="button" onclick="changePage(1);" value="Page 1">
<input type="button" onclick="changePage(2);" value="Page 2">
<input type="button" onclick="changePage(3);" value="Page 3">
Popular Posts
-
Can anyone tell me how to add php code in . tpl file e.g i want to add the following code but it didn't work { php } if (...
-
Note=->> I'm running Magento enterprise 1.7.1 and I'm searching for any possible way to upgrade this to 1.8, or straight to ...
Saturday, 1 March 2014
Onclick Radio button change page
Subscribe to:
Post Comments (Atom)
Magento: How to get last order id
There are many ways to get last order id: 1. From checkout session: $lastOrderId = Mage::getSingleton('checkout/session'...
-
The sample code below makes 2 database connections and the reference to each database connection is stored in separate variables. Whenever...
-
Here is simple magento code to redirect to login page, if user is not logged in: <?php $redirect_url = Mage::getUrl('customer...
-
To Retrieve URL path in STATIC BLOCK SKIN URL { {skin url='images/sampleimage.jpg'}} {{skin url='images/sampleimage.jpg...
No comments:
Post a Comment