Skip to Content
0
Mar 25, 2015 at 11:02 PM

Read page attribute inside javascript

23 Views

Hi

Is there a way to read the page attribute value inside a javascript? i want to make a decision in java script based on a page attribute value set. how it can be done?

please any pointers on it is much appreciated

Code in java script - "onload" is page attribute

function getURLParam()

{

if <%= onload %> != 'X';

{ do someting}

}

inside the OnInputProcessing event the page attribute is set as:

onload = 'X'.