in my DOM I see this
<script type="text/javascript">
$(document).ready(function(){
Test.js({"Now":"\/customers\/product\/1","id":"29scds","pro_id":"124""});
});
</script>
i need to alert out the values in Test.js from another javascript page thats included in the DOM. How can I do that
thanks
EDIT
alert(Test.js)
gave this
function (params) {
for (var prop in params) {
this[prop] = params[prop];
}
}
It seems to me that Test.js just copies properties from one object to another. It should have a
hasOwnPropertyfilter, but it doesn’t. The following might help: