Link to home
Start Free TrialLog in
Avatar of madmare
madmareFlag for Israel

asked on

Append Javascript to URL, SET ZOOM

Hello Experts,

 I got url for a web application to use it, how do I add to this url a JavaScript command to set ZOOM to be 120% ?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Hagay Mandel
This trick (with the help of jQyery) will do it

$(document).ready(function() {
		//alert();
		var url = window.location.href;
		var zoom = url.split("?");
		if((zoom[zoom.length - 1]) == 'zoom120'){
		$("body").css("zoom","120%");
		}		
	});

Open in new window


Just add 'zoom120' to the end of the url
Avatar of madmare

ASKER

Hello Hagay,

 I don't have any permission to insert code to the url page,

 for example the url is http://www.yahoo.com & I want to add some code to this url to be opened in ZOOM 120%

Thanks
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial